<?php
$xmlData = file_get_contents('php://input');
file_put_contents('test.text',$xmlData);